home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
util
/
text
/
frexxedv.lha
/
FrexxEdpatch
/
fpl
/
WordPro.FPL.README
< prev
Wrap
Text File
|
1995-09-22
|
4KB
|
84 lines
#############################################################################
File: WordPro.FPL
Author: Daniel Stenberg
Email: Daniel.Stenberg@sth.frontec.se
Short: Paragraph oriented word wrap and much more.
Version: 1.0 - please report/fix bugs!
Date: 22.9.95
Local settings: a few
Global settings: a few
Keysequence: a few
Type: hooks/keys/mode
Prereq:
Copyright: (C) by FrexxWare 1995
#############################################################################
FUNCTION
The main function of this program is a *TRUE* word-processor style
interactive paragraph oriented word wrap. With this, I mean word wrapping
where all newlines inserted because a word wrap was required, are called
'soft newlines', and when i.e a line with a 'soft' newline gets short enough,
the first word from the line below will get moved to the line of the deletion.
You'll understand it if you try it.
All soft newlines will be visible with '^'-characters. They are left visible
only for the user to better control and know where they are and how the buffer
is treated.
This program also features functions for:
* Open files into wordpro-mode. Adds 'soft' newlines to all lines it thinks
are part of the same paragraph. It will also wrap all lines longer than
the defined allowed width.
* Wrap block. Does a similar operation like the 'Open' but instead of a new
file, it operates on the marked block.
* Preferences customization. Brings up a window which lets the user select
a few things.
PREFERENCES
- 'wall_right' - Where the right edge is - where all wraps should occur.
- 'wordpro' mode on/off for the current buffer.
- 'wordpro_fitprev', which if disabled makes the program never check if
the first word of the current line fits on the line above. Slight speed
improvement on slower machines.
- 'wordpro_save' - Save mode. The user can select a few ways how to save all
buffers in 'wordpro' mode:
RAW saves the buffer just as you see it, including the raw codes for soft
newlines. If you intend to edit the file again in 'wordpro' mode, you
should save it with this, otherwise there is hardly any reason to do it.
SOFTS TOO saves the buffer with all newlines left, including the soft ones.
This will save the buffer just like it looks on screen, but without the
soft newline characters.
ONLY HARDS replaces all soft newlines with spaces before saving. Only hard
newlines will be left as real newlines.
QUERY makes the save operation query which save mode to use every time save
is requested.
- 'wordpro_open' makes all regular opens wrap the input files if enabled.
If disabled, only files loaded with the wordpro-open function will get
wrapped when read!
HISTORY
0.1ß - The first version I really believe actually works!
1.0 - Fixed the bug that was reported by Christer Enfors:
When adding text to the end of a line what wasn't the last line
and it wasn't previously wrapped, the cursor got on the wrong
position when it did wrap.
- Inserting a lot of spaces before the last word of a line, until
that word get wrapped, now tries to move the cursor down to
the next line instead of remaining on the first line.
BUGS
I bet there still are some. Report 'em!
TODO
* Make it quote-aware, editing quoted lines would be a KILLER! ;)
* Make it support some kind of left margin to make it useable when editing
texts that don't start in the first column.
* Spell checking. Perhaps auto-invoked on save.
* BOLD/ITALIC/UNDERLINED codes support for Spot ((C) by Nico François)
SEE ALSO
WordWrap.FPL - for a simpler and faster word wrap.